package com.chinasofti.randomdemo;

import java.util.Random;

public class TestRandom {

	public static void main(String[] args) throws InterruptedException {

		Random random = new Random();
		while (true) {
			System.out.println(random.nextDouble());

			//[0-9]
			System.out.println(random.nextInt(10));

			Thread.sleep(500);
		}
	}
}
